<?php
require_once '../controller.php';
$g = new Group($params->g);
if($g->students) {
	$count = count(explode(',',$g->student_ids));
}
$form = new Form('add_student_form','post');
$form->text("<h2>Add new Student</h2>");
$form->textInput('group_id','',array('class'=>'invisible','value'=>$g->id));
$form->textInput('full_name','Full Name',array('required'=>true,'tabindex'=>'1'));
$form->textInput('email','GMail Address',array('required'=>true,'tabindex'=>'2'));
$form->button('add_student_submit','Add Student',array('type'=>'submit','tabindex'=>'3'),false);
$form->button('cancel_student_submit','Cancel',array('type'=>'button','onclick'=>'closePopup();','tabindex'=>'4'),false);
die($form->build());